package com.example.administrator.hello.AndroidText;

import android.support.test.uiautomator.UiObject2;

/**
 * Created by Administrator on 2017/7/15.
 */

public class PageCommon {
    private Finder finder;

    public PageCommon(Finder finder) {
        this.finder = finder;
    }

    public UiObject2 getMyTab() {
        return finder.findById("net.oschina.app:id/nav_item_me");
    }

    public void clickMyTab() {
        getMyTab().click();
    }
}
